package stud.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import stud.aistar.entity.Doctorlogin;
import stud.aistar.mapper.DoctorLoginMapper;
import stud.aistar.service.IDoctorLoginService;

import java.util.List;

/**
 * *
 *
 * @ClassName :wangyu
 * @Description:医生端登录实现类
 * @Author
 * @Date2019/9/28 18:28
 * @Version V1.0
 */
@Service
@Transactional
public class DoctorLoginServiceImpl implements IDoctorLoginService{

    @Autowired
    private DoctorLoginMapper mapper;

    @Override
    public Doctorlogin findByWorknum(String worknum) {

        Doctorlogin doctorlogin = mapper.findByWorknum(worknum);

        return doctorlogin;

    }

    @Override
    public List<Doctorlogin> findAll() {

        List<Doctorlogin> list = mapper.findAll();

        return list;
    }

}
